﻿@model Sigavat.Entities.Promotor

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Promotor</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.CodigoPromotor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CodigoPromotor)
            @Html.ValidationMessageFor(model => model.CodigoPromotor)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NumPromotor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NumPromotor)
            @Html.ValidationMessageFor(model => model.NumPromotor)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CodEquifax)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CodEquifax)
            @Html.ValidationMessageFor(model => model.CodEquifax)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Ubigeo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Ubigeo)
            @Html.ValidationMessageFor(model => model.Ubigeo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdCentroComercial)
        </div>
        <div class="editor-field">
            @*@Html.EditorFor(model => model.IdCentroComercial)*@
            
            @Html.DropDownList("Id")
            @Html.ValidationMessageFor(model => model.IdCentroComercial)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Dni)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Dni)
            @Html.ValidationMessageFor(model => model.Dni)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombres)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombres)
            @Html.ValidationMessageFor(model => model.Nombres)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ApPaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ApPaterno)
            @Html.ValidationMessageFor(model => model.ApPaterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ApMaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ApMaterno)
            @Html.ValidationMessageFor(model => model.ApMaterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Genero)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Genero)
            @Html.ValidationMessageFor(model => model.Genero)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telefono)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Direccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaNac)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaNac)
            @Html.ValidationMessageFor(model => model.FechaNac)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
